package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;

/**
 * 系统规则模型
 * 规则模板;
 * @author miyu
 * @date 2024/02/03
 */
@ApiModel(value = "规则模板",description = "")
@Data
@Entity
@Table(name="sys_rule_model")
@TableComment("规则模板")
public class SysRuleModel implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @GeneratedValue(generator = "jpa-uuid")

    @ApiModelProperty(value="主键",notes = "")
    @ColumnComment("主键")
    @Column(name = "model_id", nullable = false,length=32 )
    private String modelId ;
    /** 规则类型 */
    @ApiModelProperty(value="规则类型",notes = "")
    @ColumnComment("规则类型")
    @Column(name = "mod_code", nullable = false,length=20 )
    private String modCode ;
    /** 模板名称 */
    @ApiModelProperty(value="模板名称",notes = "")
    @ColumnComment("模板名称")
    @Column(name = "mod_name", nullable = true,length=50 )
    private String modName ;
    /** 初始规则 */
    @ApiModelProperty(value="初始规则",notes = "")
    @ColumnComment("初始规则")
    @Column(name = "rule_set", nullable = false,length=8000 )
    private String ruleSet ;
}